package jmind.asteroidea.proxy;

import jmind.base.util.reflect.ClassUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationContext;

import java.lang.reflect.InvocationHandler;

/**
 * description:jdk代理实现
 *
 * @author weibo.xie
 * @date:2022/7/14 下午4:46
 */
@Slf4j
public class JdkAbstractAsteroideaIntefaceProxy extends AbstractAsteroideaInterfaceProxy implements InvocationHandler {


    public JdkAbstractAsteroideaIntefaceProxy(Class asteroideaInterfaceClass, ApplicationContext applicationContext) {
        super(asteroideaInterfaceClass, applicationContext);
    }


    @Override
    public Object getProxy() {
       return ClassUtil.newProxy(asteroideaInterfaceClass,this);
    }



}
